import instance from "./request";
/*
// post请求 ，没参数
export const LogoutAPI = () => instance.post("/admin/logout");

// post请求，有参数
export const loginAPI = (data: any) => instance.post("/admin/login", data);

// post请求 ，没参数，但要路径传参
export const StatusAPI = (data: { id: any; navStatus: any; }) =>
  instance.post(`/productCategory?ids=${data.id}&navStatus=${data.navStatus}`);


//  get请求，没参数，
export const FlashSessionListApi = () =>
  instance.get("/flashSession/list");

// get请求，有参数，路径也要传参
export const ProductCategoryApi = (params: { parentId: any; }) =>
  instance.get(`/productCategory/list/${params.parentId}`, { params });

// get请求，有参数，
export const AdminListAPI = (params: any) => instance.get("/admin/list", { params });
*/

export const loginApi = () => instance.get("/data/login.json");